﻿<?php
class Consulta{
	private $ID;
	private $cursoID;
	public function Consulta(){
		$this->setID();
		$this->setCursoID("");
	}

	public function getID(){
		return $this->ID;
	}
	
	public function getCursoID(){
		return $this->cursoID;
	}

	private function setID(){

		if(isset($_SESSION["ID"])){
			 $this->ID = $_SESSION["ID"];
		}else{
			$_SESSION["ID"] = date('d').date('m').date('y').date('h').date('i').date('s');
		}
	}

	public function setCursoID($id){
			if(empty($id)){
				$_SESSION["CURSOID"] = 1;
				$this->cursoID =1;
			}else{
				$_SESSION["CURSOID"] = $id;
				$this->cursoID = $id;
			}
	}


}

?>